import API from "../../library/axios/api";

export function getSongDetail(ids) {
    API.song.detail({ ids }).then(res => {
        this.songName = res.songs[0].al.name;
        this.imgSrc = res.songs[0].al.picUrl;
        this.author = res.songs[0].ar[0].name;

    })
}

export function getSongUrl(id) {
    API.song.url({ id }).then((res) => {
        this.songUrl = res.data[0].url;
    });
}